<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/custom.css" />
    <style>
        table.dataTable thead .sorting{
            background: none;
        }
        table.dataTable thead .sorting_asc{
            background: none;
        }
    </style>
    <title>门店管理</title>
</head>
<body data-id="584">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>触摸屏管理<span class="c-gray en">&gt;</span>门店管理<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="form-search"  method="post">
        <div class="bg-1 bk-gray pb-10">
            <div class="va-m pl-15 lh-50 f-16">
              <!--  <strong>门店管理</strong>-->
            </div>
            <div class="lh-30 mb-10 ml-20">
                <table class="table_li mb-10 table ml-20">
                    <thead class="text-l">
                    <tr>
                        <td class="col-4-1">
                            <div class="row">
                                <label style="margin-left: -11px;" class="form-label f-l label-right">门店分公司：</label>
                                <div class="formControls f-l">
                                    <input type="text" class="input-text radius ml-10 w-150" placeholder="请输入门店分公司" id="companyName" autocomplete="off">
                                </div>
                                <span class="Validform_checktip"></span>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td class="col-4-1">
                            <div class="row">
                                <div class="clearfix mt-15">
                                    <label class="form-label f-l">中心仓：</label>
                                    <div class="formControls f-l checkbox_list" style="margin-left: 12px;">
                                        <label style="float: left;"><input type="checkbox" checked="checked" onclick="goodselection()" id="saleAreas"/>全选&nbsp;&nbsp;</label>
                                        <span id="RegionSelection2"></span>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>
                <div id="store" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
                    <div class="modal-dialog">
                        <div class="modal-content radius" style="height:455px;width:631px;overflow-y: hidden;overflow-x: hidden;">
                            <div class="modal-header"  >
                                <h3 class="modal-title"><b class="addressTitle">新建</b></h3>
                                <a class="close" onclick="close_model(1)" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                            </div>
                            <input type="hidden" class="ship_add_id">
                            <div class="pop_win pop_receiver"  >
                                <div class="info" >
                                    <div class="clearfix">
                                        <label><em>*</em>中心仓：</label>
                                        <div class="formControls f-l">
                                          <select class="select" name="brandclass" style="width: 125px;" id="salesArea" size="1" onchange="sellingpricearea(1)">
                                              <option value="">请选择中心仓</option>
                                          </select>
                                        </div>

                                        <label><em>*</em>价格省份：</label>
                                        <div class="formControls f-l">
                                            <select class="select" name="brandclass" style="width: 125px;" id="selling_price_area" size="1">
                                                <option value="">请选择发货仓</option>
                                            </select>
                                        </div>
                                    </div>
                              
                                        <div class="clearfix">
                                            <label><em>*</em>门店选择：</label>
                                            <div class="formControls f-l">
                                                <select class="select" name="brandclass" style="width: 125px;" id="storeSelection" size="1" onchange="storeSelections(this)">
                                                    <option value="">请选择门店</option>
                                                </select>
                                            </div>
                                 
                                        </div>
                         

                                    <input value="" style="display: none" id="storeid">
                                    <div class="clearfix">
                                        <label>门店负责人：</label><input name="" type="text" placeholder="最多输入20个字符" oninput="checkMaxsssIut(this)"  id="shopManager" class="addAlias qing" autocomplete="off" onkeyup="value=value.replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\a-zA-Z\u4E00-\u9FA5]/g,''))"><!--只能输入中文和英文-->
                                    </div>
                                    <div class="clearfix">
                                        <label>负责人联系方式：</label><input name="" type="text" placeholder="最多输入20个字符"  maxlength="11" oninput = "value=value.replace(/[^\d]/g,'')" id="managerPhone" class="detailedAddress qing" autocomplete="off">
                                        <div class="etip tip_31"></div>
                                    </div>
                                    <div class="clearfix">
                                        <label>生效状态：</label>
                                        <div class="formControls f-l" style="margin-top: -3px;">
                                            <input type="radio" style="width: 28px;height: 16px;margin-top: 10px;" checked="checked" id="dj4" name="effectiveStatus" value="10"><span>生效</span>
                                        </div>
                                        <div class="formControls f-l" style="margin-top: -3px;">
                                            <input type="radio" style="width: 28px;height: 16px;margin-top: 10px;" name="effectiveStatus" id="dj5" value="20"><span>失效</span></div>

                                    </div>

                                </div>
                                <div class="text-c pt-30" style="margin-top: 4px;"><a onclick="preservation()" class="btn btn-secondary radius size-L">保存提交</a><a onclick="close_model(2)" class="btn radius size-L ml-10">取消</a><span  id="viewIinksbutton" style="display: none" ><a onclick="viewIinks()"class="btn btn-secondary radius size-L ml-10">查看链接</a></span></div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="text-c pb-10 pt-15">
                    <input type="button" class="btn btn-secondary radius size-S powerButton 585" id="searchs" onclick="operatesearch()" value="查&nbsp;&nbsp;询">
                    <input name="" type="reset" onclick="resetDiv()" class="btn radius size-S ml-10 powerButton 585" value="重&nbsp;&nbsp;置">
                    <input type="button" style="margin-left: 11px;" class="btn btn-secondary radius size-S powerButton 586" onclick="addstore()" value="新&nbsp;&nbsp;增">
                </div>
            </div>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="tabletables">
                <thead>
                <tr class="text-c">
                    <th width="100">序号</th>
                    <th width="100">门店</th>
                    <th width="100">中心仓</th>
                    <th width="100">门店负责人</th>
                    <th width="100">联系人手机号</th>
                    <th width="100">当前状态</th>
                    <th width="100">创建时间</th>
                    <th width="100">操作人员</th>
                    <th width="100">操作</th>
                </tr>
                </thead>
                <tbody class="shun">
                </tbody>

            </table>
            <div class="mt-40"></div>
            <div class="dataTables_wrapper goods_fanye clearfix mt-5">
                <div class="f-r pageturning M-box3"></div>
            </div>
        </div>
    </form>
    </div>
    <div id="viewIinks" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog" style="top:50%;margin-top:-336px">
            <div class="modal-content radius" style="height:200px;width:630px;">
                <div class="modal-header"  >
                    <a class="close" onclick="closes()" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <div class="pl-30 mt-10"><b>生成门店触摸屏链接：</b><span id="newFileNameTwo"></span></div>
                <div class="mt-10 pl-30 clearfix">
                    <label class="f-l lh-26">生成路径：</label>
                    <input type="text" class="input-text f-l radius" id="newPath" readonly style="width:73%" value="">
                    <input type="button" class="btn btn-secondary size-S radius ml-10" onclick="copyIink()" value="复制">
                </div>
            </div>
        </div>
    </div>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/Project.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<!--引入分页-->
<link rel="stylesheet" href="../../lib/pagination/pagination.css">
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/address.demo.js"></script>
<script src="../../ht-js/touchScreen/storeManagement.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>
<script>
    $('#reset').click(function(){
        $('input').val('');
        $('select').val('');
    })
    //限制字符
    var len
    var Preser
    var common=20//要限制输入的字数
    $('#commonText').text('('+common+')')
    function checkMaxsssIut(me) {
        var text=$(me).val()
        strlen(text)
        if(len>common){
            $(me).val(Preser)
        }else {
            Preser=$(me).val()
        }
    }
    function strlen(str){
        len = 0;
        for (var i=0; i<str.length; i++) {
            var c = str.charCodeAt(i);
            //单字节加1
            if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
                len++;
            } else {
                len+=2;
            }
        }
        $('#textSpan').text((len>40)?40:len)
        return len;
    }

</script>

</body>
</html>